package com.gitee.huxing.course.conc.conc01;

/**
 * @Description:
 * @ProjectName: JavaCourse
 * @Package: com.gitee.huxing.course.conc.cono01
 * @ClassName: Runner2
 * @Author: huxing
 * @DateTime: 2021-08-20 上午9:37
 */
public class Runner2 implements Runnable{

    @Override
    public void run() {
        for (int i = 0; i < 100; i++){
            System.out.println("进入Runner2运行状态: " + i);
        }
        // TODO:?
        boolean result = Thread.currentThread().isInterrupted();
        // TODO:?
        boolean result1 = Thread.interrupted();
        // TODO:?
        boolean result3 = Thread.currentThread().isInterrupted();
        System.out.println("Runner2.run result ===>" + result);
        System.out.println("Runner2.run result1 ===>" + result1);
        System.out.println("Runner2.run result3 ===>" + result3);
    }
}
